
import './lib/css/index.less'
import 'mint-ui/lib/style.css'
import './lib/mui/css/mui.min.css'
import './lib/mui/css/icons-extra.css'
import 'iview/dist/styles/iview.css';
import Vue from 'vue'
import Vuex from 'vuex'
import store from './store.js'
import VueRouter from 'vue-router'
import router from './router.js'
import app from './app.vue'
import iView from 'iview';
import { Header  } from 'mint-ui';
import { Swipe, SwipeItem } from 'mint-ui';
import axios  from 'axios';

Vue.use(iView);
Vue.use(VueRouter); //安装一下vue-router 包
 //安装一下Vuex 包
Vue.component(Header.name,Header);
Vue.component(Swipe.name, Swipe);
Vue.component(SwipeItem.name, SwipeItem);
// var timer = null;
// function add(){
//     alert('开始定位……');
//     //watchPosition 相当于  setInterval
//     navigator.geolocation.getCurrentPosition(function(position){//成功
//         alert('定位成功！');
//     },function(error){
//         alert(error);
//         //清除多次地理位置定位
//         navigator.geolocation.clearWatch(timer);
//     },{
//         enableHighAccuracy:true,
//         maximumAge:2000
//     });
//     console.log(navigator.geolocation);
// }
//     add();

var vm = new Vue({
    el:"#app",
    data:{
    },
    render: render => render(app),
    router,
    store
})